package com.onpositive.data;

import java.util.BitSet;

public abstract class FilterTester {

	public static final int EQ=0;
	public static final int NEQ=1;
	public static final int LE=-1;
	public static final int LT=2;
	public static final int GE=3;
	public static final int GT=4;
	public static final int ONE_OF=5;
	public static final int CONTAINS=6;
	public static final int STARTSWITH=7;

	public abstract boolean accept(int op, int a,Object constraint);
	
	public abstract Object aggregate(int op,BitSet ss);

	public abstract int compare(int num, int num2) ;
	
	public static final int AGR_MIN=0;
	public static final int AGR_MAX=1;
	public static final int AGR_SUM=2;
	public static final int AGR_AVE=3;
	public static final int AGR_IDE=4;

}
